package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.heima.pojo.VmList;
import com.heima.pojo.dto.VmPageQureyDTO;
import com.heima.pojo.vo.VmListVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface VmMapper extends BaseMapper<VmList> {


    Page<VmListVo> vmQuery(VmPageQureyDTO dto);


    @Update("update tb_vending_machine set node_id = #{nodeId} where id = #{id}")
    Integer updateByIdNode(Long id, Long nodeId);
}
